package net.yvesd.cellhunter.model.filter;

import java.util.ArrayList;
import java.util.List;

import net.yvesd.cellhunter.model.coverage.SignalStrengthLocation;

public class MetaFilter implements Filter {
	
	List<Filter> filters = new ArrayList<Filter>();
	
	public void add(Filter f) {
		filters.add(f);
	}

	@Override
	public List<SignalStrengthLocation> filter(int lac, int cid,
			List<SignalStrengthLocation> signalStrenghLocations) {
		
		for (Filter filter : filters) {
			signalStrenghLocations = filter.filter(lac, cid, signalStrenghLocations);
		}
		
		return signalStrenghLocations;
	}
}
